package com.tm.config;


import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.context.annotation.Bean;

/**
 * @author DELL
 * @PROJECT_NAME: tm-wm-syb
 * @DESCRIPTION:
 * @USER: DELL
 * @DATE: 2023/4/3 16:41
 */

public class MyBatisPlusConfig {

    @Bean
    public PaginationInterceptor paginationInterceptor(){

        return new PaginationInterceptor();
    }


    /**
     * 新版plus分页配置
     */
    //    @Bean
//    public MybatisPlusInterceptor mybatisPlusInterceptor(){
//        MybatisPlusInterceptor interceptor= new MybatisPlusInterceptor();
//        interceptor.addInnerInterceptor(new PaginationInterceptor(DbType.MYSQL));
//        return interceptor;
//    }


}
